﻿#include "../common/cmemory_pool.h"
#include <iostream>
#include <thread>
#include "../common/cmaster_server.h"
#ifdef _WIN32
#include <Windows.h>
#include <signal.h>
#pragma comment(lib, "ws2_32.lib")
#endif
using namespace std;

int main()
{
#ifdef _WIN32
	WSAData wsadata;
	WSAStartup(MAKEWORD(2, 2), &wsadata);
#endif
	
	CMasterServer server;
	server.set_server_port(8000);
	server.set_server_ip("127.0.0.1");
	server.Init();
	server.Start();
	while (true)
		this_thread::sleep_for(1s);
	return 0;
}
